.adm-step {
  --line-to-next-color: #e5e5e5;
  --icon-color: #e5e5e5;
}

.adm-step .adm-step-indicator {
  position: relative;
}

.adm-step .adm-step-indicator::after {
  content: '';
  position: absolute;
  z-index: 0;
  background-color: var(--line-to-next-color);
}

.adm-step .adm-step-indicator .adm-step-icon-container {
  position: absolute;
  z-index: 1;
  background: var(--adm-color-white);
  color: var(--icon-color);
}

.adm-step .adm-step-indicator .adm-step-icon-container > .antd-mobile-icon {
  display: block;
}

.adm-step:last-child .adm-step-indicator::after {
  display: none;
}

.adm-step-status-finish {
  --line-to-next-color: var(--adm-color-primary);
}

.adm-step-status-wait {
  --icon-color: #e5e5e5;
}

.adm-step-status-process {
  --icon-color: var(--adm-color-primary);
}

.adm-step-status-process .adm-step-title {
  color: var(--adm-color-primary);
}

.adm-step-status-finish {
  --icon-color: var(--adm-color-primary);
}

.adm-step-status-error {
  --icon-color: var(--adm-color-danger);
}

.adm-step-status-error .adm-step-title {
  color: var(--adm-color-danger);
}

.adm-steps {
  width: 100%;
}

.adm-steps-horizontal {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
}

.adm-steps-horizontal .adm-step {
  flex: 1;
}

.adm-steps-horizontal .adm-step .adm-step-indicator {
  width: 100%;
  height: 48px;
}

.adm-steps-horizontal .adm-step .adm-step-indicator::after {
  left: 50%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  width: 100%;
}

.adm-steps-horizontal .adm-step .adm-step-indicator .adm-step-icon-container {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.adm-steps-horizontal .adm-step-content {
  text-align: center;
  font-size: 24px;
  padding-top: 4px;
}

.adm-steps-horizontal .adm-step-content .adm-step-description {
  margin-top: 4px;
  color: var(--adm-color-weak);
}

.adm-steps-vertical {
  padding: 16px 32px;
  --title-font-size: 34px;
}

.adm-steps-vertical .adm-step {
  display: flex;
  align-items: stretch;
}

.adm-steps-vertical .adm-step .adm-step-indicator {
  flex: none;
  width: 48px;
  margin-right: 16px;
}

.adm-steps-vertical .adm-step .adm-step-indicator::after {
  left: 50%;
  top: calc(var(--title-font-size) * 1.5 / 2);
  width: 2px;
  transform: translateX(-50%);
  height: 100%;
}

.adm-steps-vertical .adm-step .adm-step-indicator .adm-step-icon-container {
  top: calc(var(--title-font-size) * 1.5 / 2);
  left: 50%;
  transform: translate(-50%, -50%);
}

.adm-steps-vertical .adm-step:last-child .adm-step-content {
  padding-bottom: 0;
}

.adm-steps-vertical .adm-step .adm-step-content {
  flex: auto;
  padding-bottom: 28px;
}

.adm-steps-vertical .adm-step .adm-step-content .adm-step-title {
  font-size: var(--title-font-size);
  line-height: 1.5;
}

.adm-steps-vertical .adm-step .adm-step-content .adm-step-description {
  padding-top: 4px;
  font-size: 30px;
  color: var(--adm-color-weak);
}

.adm-step-icon-container {
  font-size: 36px;
}

.adm-step-icon-dot {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  border-radius: 8px;
}